package cn.xbtop.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.xbtop.mapper.TAdminRoleMapper;
import cn.xbtop.bean.TAdminRole;
import cn.xbtop.service.TAdminRoleService;
/**
 * @author  Mxb
 * @date  2020/6/6 18:34
 * @version 1.0
 */
@Service
public class TAdminRoleServiceImpl implements TAdminRoleService{

    @Resource
    private TAdminRoleMapper tAdminRoleMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tAdminRoleMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TAdminRole record) {
        return tAdminRoleMapper.insert(record);
    }

    @Override
    public TAdminRole selectByPrimaryKey(Integer id) {
        return tAdminRoleMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(TAdminRole record) {
        return tAdminRoleMapper.updateByPrimaryKey(record);
    }

}
